package com.sxjh.entity.bo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

// 化工原料采购日报表查询对象
@Data
public class Finance3HgyljcyhzbBo {
    // 供应商
    private String companyName;
    //原发重量
    private BigDecimal netWeight;
    // 实收重量
    private BigDecimal weighbridgeWeight;
    // 出厂时间
    private String factoryOutTime;

    public BigDecimal getNetWeight() {
        if("".equals(netWeight)||netWeight==null){
            return new BigDecimal(0);//去除该属性的前后空格并进行非空非null判断
        }
        return netWeight;
    }

    public BigDecimal getWeighbridgeWeight() {
        if("".equals(weighbridgeWeight)||weighbridgeWeight==null){
            return new BigDecimal(0);//去除该属性的前后空格并进行非空非null判断
        }
        return weighbridgeWeight;
    }

}
